package com.ljx.orm;

import com.ljx.orm.dao.DeptDao;
import com.ljx.orm.dao.UserDao;
import com.ljx.orm.entity.Dept;

import java.util.List;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2022/10/28 15:01
 * @Version 1.0
 */

public class Test {
	public static void main(String[] args) throws Exception{
		UserDao userDao = new UserDao();
//		User user = new User();
//		int delete = userDao.delete(6);
//		System.out.println(delete);

//		User oneTable = userDao.findOneTable(6);
//		System.out.println(oneTable);

		DeptDao deptDao = new DeptDao();
		List<Dept> all = deptDao.findAll();
		for (Dept dept : all) {
			System.out.println(dept);
		}
	}
}
